package com.yfqy.app.modules.fund.resource;

import com.yfqy.app.domain.vo.ResultVO;
import com.yfqy.app.modules.fund.dto.UserAppliesWithdrawalDTO;
import com.yfqy.app.modules.fund.service.UserFundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/client")
public class UserFundController {

    @Autowired
    private UserFundService customerWithdrawalService;

    /**
     * 用户发起提现申请
     *
     * @param dto
     * @return
     */
    @PostMapping("/userAppliesWithdrawal")
    public ResultVO<String> userAppliesWithdrawal(@RequestBody UserAppliesWithdrawalDTO dto) {
        return ResultVO.data(customerWithdrawalService.userAppliesWithdrawal(dto));
    }

    /**
     * 用户的资金流水
     *
     * @param dto
     * @return
     */

}
